home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / bootup / boot_n2z / stint3_1 / makcooky.txt < prev    next >
Text File  |  1995-05-02  |  2KB  |  72 lines

  1.                              MAKCOOKY.PRG
  2.  
  3.  
  4.                           Mike Horwell 14/4/91
  5.  
  6.  
  7.  
  8. As some of you are aware, the STE and TT have a 'COOKIE JAR' installed.
  9. This COOKIE JAR is a table which is set up by the operating system with
  10. the capability of informing applications the type of system they are 
  11. running on - such as machine type, processor type etc.
  12.  
  13. The really neat thing about it is that any new devices installed can
  14. insert their I.D and address (or version number) so that other 
  15. applications can take advantage of them. For example, MACCEL.PRG v2 
  16. and v3 install an I.D of $00AA006E followed by the address at which
  17. MACCEL is loaded. If you wanted to configure it yourself, think of how
  18. difficult it would be to find it if you couldn't use this table.
  19.  
  20. OK - so now we know how useful this table is, what about the ST owners
  21. who do not have this table? Never fear - that's exactly what MAKCOOKY
  22. does. It checks the location at $5A0 to see if a table is already 
  23. installed - if so it simply exits. If this location is empty, it will
  24. set up a new table.
  25.  
  26. **********************************************************************
  27. NOTE
  28.  
  29. Since the program is installing the cookie jar, the machine MUST be a
  30. ST and so the program makes some standard assumptions regarding the
  31. machine, video shifter type and sound capabilities - but does make an
  32. attempt to identify the type of processor installed in the machine by 
  33. using some commands only recognised by the different processors. 
  34.  
  35. **********************************************************************
  36.  
  37. The variables installed are :
  38.  
  39.     _CPU    This is the type of processor
  40.             $00000000    = 68000
  41.             $00000014    = 68020
  42.             $0000001E    = 68030
  43.  
  44.     _MCH    The type of machine
  45.             $00000000    = ST
  46.             $00010000    = STE
  47.             $00020000    = TT030
  48.  
  49.     _VDO    The type of video shifter
  50.             $00000000    = ST
  51.  
  52.     _SND    The type of sound output
  53.             $00000001    = ST Sound Chip
  54.  
  55. There is also space for 8 more COOKIES 
  56.  
  57.  
  58. Well that's it, except to say that this program is in the Public Domain
  59. and as such I will not be held responsible for any loss of data or damage
  60. which may or may not have been directly ot indirectly caused from using
  61. this program.
  62.  
  63. If you have any comments write to me at
  64.  
  65.  
  66. Mike Horwell
  67. Barbary Park
  68. Trematon
  69. Cornwall
  70. England
  71. PL12 4RT
  72.